package com.sk.controller.configFile;

import com.sk.common.CommonResponse;
import com.sk.entity.ApplicationEntity;
import com.sk.service.IPropertiesServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用于修改项目配置文件
 * @Author jiaok
 * @Date 2023-12-08 15:06
 */
@Api(value = "修改项目配置文件",tags = "修改项目配置文件")
@RestController
@RequestMapping("/proConfig")
@Slf4j
public class PropertiesController {

    @Autowired
    private IPropertiesServer iPropertiesServer;

    @ApiOperation(value = "修改项目配置",notes = "修改项目配置文件",httpMethod = "POST")
    @PostMapping("/initializePro")
    public CommonResponse initializePro(@RequestBody ApplicationEntity applicationEntity){
        return iPropertiesServer.initializePro(applicationEntity);
    }
}
